/* 算法执行页面专用样式 */

.execution-control {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.execution-control h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.control-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-buttons .btn {
    padding: 0.8rem 1.5rem;
}

.execution-status {
    padding: 1rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    text-align: center;
}

.execution-status.running {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.execution-status.completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.execution-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.algorithm-status {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.algorithm-status h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.status-item h4 {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.status-item p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.execution-results {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.execution-results h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

#results-summary {
    min-height: 200px;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .control-buttons {
        flex-direction: column;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
}